/*
 * Copyright (c) 2008, Xiong Yingfei, the University of Tokyo
 * All rights reserved.
 */
package ac.jp.u_tokyo.SyncLib.language.factories;

import ac.jp.u_tokyo.SyncLib.SetMember;
import ac.jp.u_tokyo.SyncLib.Sync;
import ac.jp.u_tokyo.SyncLib.SyncFactory;
import ac.jp.u_tokyo.SyncLib.SetMember.MemberTester;

public class SetMemberFactory implements SyncFactory
{
	private MemberTester _tester;
	private Object _defaultValue;

	public void setTester(Object tester)
	{
		_tester = (MemberTester) tester;
	}

	public void setDefaultValue(Object defaultValue)
	{
		_defaultValue = defaultValue;
	}

	public Sync create()
	{
		return new SetMember(_tester, _defaultValue);
	}

}
